package cn.tedu.springdiannotationioc2012.pojo;

import org.springframework.stereotype.Component;

@Component
public class Dept {
    private String deptName="软件部";//初始化

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "deptName='" + deptName + '\'' +
                '}';
    }
}
